package com.powernode.service;

import com.github.pagehelper.Page;
import com.powernode.domain.User;
import com.powernode.dto.UserDto;

import java.util.List;

public interface UserService{


    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    

    Page<User> queryPage(UserDto userDto);

    List<User> getAllUser(Integer role,Integer deleted);

    User login(String username, String md5DigestAsHex);
}
